(function () {
	'use strict';
	angular.module('app.admin').controller('adminController', adminController);
	adminController.$inject = ['adminServie'];
	
	function adminController(adminService){
		var vm = this;
		vm.data = [];
		
		initData();
		
		function initData(){
			adminService.getData().then(function (resp) {
				if(resp.status == 200){
					vm.data = resp.data;
				}else{
					console.log('getData error');
				}
			});
		}
	}
	
})();